package org.dolphin.base.bean;

import java.io.Serializable;
import org.springframework.util.ObjectUtils;

public class ProductCategoryVO implements Serializable {
  private static final long serialVersionUID = 7738711932336121315L;
  private String id;
  private String name;
  private String description;
  private Long version;

  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    } else if (obj instanceof ProductCategoryVO) {
      ProductCategoryVO oth = (ProductCategoryVO) obj;
      return ObjectUtils.nullSafeEquals(getId(), oth.getId());
    }
    return false;
  }

  public String getDescription() {
    return description;
  }

  public String getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  public Long getVersion() {
    return version;
  }

  @Override
  public int hashCode() {
    int hash = ObjectUtils.nullSafeHashCode(getId());
    return hash;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public void setId(String id) {
    this.id = id;
  }

  public void setName(String name) {
    this.name = name;
  }

  public void setVersion(Long version) {
    this.version = version;
  }
}
